<admintpl file="headerEx"/>
<link href="__PUBLIC__/js/artDialog/skins/default.css" rel="stylesheet" />
<title>{:L('ADMIN_LINK_ADD')}</title>
<!--responsive table-->
<link href="__PUBLIC__/TciocEx/css/table-responsive.css" rel="stylesheet"/>
<!--ios7-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/TciocEx/js/ios-switch/switchery.css" />

<!--icheck-->
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/minimal.css" rel="stylesheet">
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/red.css" rel="stylesheet">
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/green.css" rel="stylesheet">
</head>
<body class="sticky-header">
<section>
	<!-- main content start-->
	<div class="full-content">
		<!-- body wrapper start -->
		<div class="wrapper">
			<div class="row">
				<div class="col-sm-12">
					<section class="panel">
						<header class="panel-heading custom-tab turquoise-tab">
							<ul class="nav nav-tabs">
								<li><a href="{:U('link/index')}"><i class="fa fa-list-ul"></i> {:L('ADMIN_LINK_INDEX')}</a></li>
								<li class="active"><a href="{:U('link/add')}"><i class="fa fa-plus"></i> {:L('ADMIN_LINK_ADD')}</a></li>
							</ul>
						</header>
						<div class="panel-body">
							<div class=" form">
								<form class="cmxform form-horizontal adminex-form js-ajax-form" id="commentForm" method="post" action="{:U('link/add_post')}" novalidate="novalidate">
									<div class="tabbable">
										<div class="tab-content">
												<fieldset>

													<div class="form-group">
														<label for="link_name" class="control-label col-lg-2">{:L('NAME')}(*)</label>
														<div class="col-lg-10">
															<input   class=" form-control" id="link_name" name="link_name" minlength="1" value="" type="text" required="" placeholder="请填写{:L('NAME')}！">
														</div>
													</div>
													<div class="form-group">
														<label for="link_url" class="control-label col-lg-2">{:L('LINK_ADDRESS')}(*)</label>
														<div class="col-lg-10">
															<input   class=" form-control" id="link_url" name="link_url" minlength="1" value="" type="text" required="" placeholder="请填写{:L('LINK_ADDRESS')}！">
														</div>
													</div>
													<div class="form-group">
														<label for="js-link-image" class="control-label col-lg-2">{:L('LINK_ICON')}</label>
														<div class="col-lg-10">
															<input class=" form-control"  type="text" name="link_image" id="js-link-image"> <a href="javascript:upload_one_image('图片上传','#js-link-image');">上传图片</a>
														</div>
													</div>

													<div class="form-group">
														<label  for="link_target" class="control-label col-lg-2">{:L('LINK_TARGET')}</label>
														<div >
														 &nbsp;<select name="link_target"  id="link_target" class="input-lg"  style="padding: 5px 16px;height: auto">
																<foreach name="targets" item="vo">
																	<option value="{$key}">{$vo}</option>
																</foreach>
															</select>
														</div>
													</div>
													<div class="form-group">
														<label  for="link_type" class="control-label col-lg-2">类型</label>
														<div >
															&nbsp;<select name="link_type"  id="link_type" class="input-lg"  style="padding: 5px 16px;height: auto">
															<foreach name="link_types" item="vo">
																<option value="{$key}">{$vo}</option>
															</foreach>
														</select>
														</div>
													</div>

													<div class="form-group">
														<label  for="link_description" class="control-label col-lg-2" >{:L('LINK_DESCRIPTION')}</label>
														<div class="col-lg-10">
															<textarea class="form-control" id="link_description"    name="link_description" rows="5" cols="57" style="width: 100%;"></textarea>
														</div>
													</div>
												</fieldset>
											</div>

									</div>

									<div class="form-group">
										<div class="col-md-12 text-center clearfix" style=" padding-left: 25%;padding-top: 20px;">
											<button class="btn btn-primary js-ajax-submit" type="submit">{:L('ADD')}</button>
											<a href="javascript:history.back(-1);" class="btn btn-default">{:L('BACK')}</a>
										</div>
									</div>
								</form>
							</div>

						</div>
					</section>

				</div>
			</div>
		</div>
		<!--footer section start-->
		<footer>
			<admintpl file="copyright"/>
		</footer>
		<!--footer section end-->
	</div>
	<!-- main content end-->
</section>
<script src="__PUBLIC__/TciocEx/js/jquery-1.10.2.min.js"></script>
<script src="__PUBLIC__/js/wind.js"></script>
<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="__PUBLIC__/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-migrate-1.2.1.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/modernizr.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery.nicescroll.js"></script>
<script src="__PUBLIC__/js/ajaxForm.js"></script>

<script type="text/javascript" src="__PUBLIC__/TciocEx/js/jquery.validate.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-localization/messages_zh.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/scripts.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-init.js"></script>

</body>
</html>
